package aiku.numericalcontroloa.Model.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 采购零件类
 * @Author 黄广庭
 * @Date 2024/5/22 9:33
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "purchase_part")
public class PurchasePart extends BaseEntity{

    /**
     * 采购订单id
     */
    @TableField(value = "purchase_id")
    private String purchaseId;

    /**
     * 产品零件id
     */
    @TableField(value = "part_id")
    private String partId;

    /**
     * 采购单价
     */
    @TableField(value = "purchase_price")
    private BigDecimal purchasePrice;

    /**
     * 上次单价
     */
    @TableField(value = "cost")
    private BigDecimal cost;

    /**
     * 运输费
     */
    @TableField(value = "freight")
    private BigDecimal freight;

    /**
     * 采购数量
     */
    @TableField(value = "part_count")
    private Float partCount;

    /**
     * 是否含税
     */
    @TableField(value = "is_include_tax")
    private Integer isIncludeTax;

    /**
     * 统计价格
     */
    @TableField(value = "total_price")
    private BigDecimal totalPrice;
}
